package com.gxa.hystrix.interfaces;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author thinknovo
 * @version 1.0
 * @description guahaobychek.java
 * @date 2021/3/25 15:36
 */
@FeignClient(value = "EUREKA-CLIENT-GONGZUOZHAN")
public interface GuaHaoByCheck {


    @RequestMapping(value = "/guaHaoJiLu/chaXunJinRi",method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map chaXunChuFangMoBan(@RequestParam(value = "jiuZhenShiJian") String jiuZhenShiJian
    );

    @RequestMapping(value = "/guaHaoJiLu/chaXunQuanBu",method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map chaXunQuanBu(@RequestParam(value = "jiuZhenShiJianQiShi") String jiuZhenShiJianQiShi,
                     @RequestParam(value = "jiuZhenShiJianJieShu") String jiuZhenShiJianJieShu,
                     @RequestParam(value = "jiuZhenJiLuZhuangTai") String jiuZhenJiLuZhuangTai,
                     @RequestParam(value = "guaDanDanHao") String guaDanDanHao,
                     @RequestParam(value = "xingMing") String xingMing
    );

    @RequestMapping(value = "/guaHaoJiLu/chaXunHuanZe",method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map chaXunHuanZe(@RequestParam(value = "guaHaoDanHao") String guaHaoDanHao
    );
}
